/**
 * 作者: lby
 * 日期: 2024-11-13 16:07:27
 * 备注: 子嗣品资表
 */
package com.motu.monstercity.server.game.commondata.child;

import io.vertx.core.json.JsonObject;

public class ChildQualityModel {
	protected int quality; // 品质
	protected int earnSpeedAddition; // 品质加成 (百分比值，计算时/100)
	protected int trainingGrowth; // 教学一次增加点数 (所有子嗣培养都是10000点数)
	protected int partnerExpAddition; // 干员经验加成 (百分比值，计算时/100)
	protected int rewardItem; // 成年奖励书籍 (itemId ，不婚主义时候奖励*4，其他情况*1)
	protected int pitNum; // 百分比

	public ChildQualityModel() {
	}

	public ChildQualityModel(JsonObject obj) {
		quality = obj.containsKey("quality") ? obj.getInteger("quality") : 0;
		earnSpeedAddition = obj.containsKey("earn_speed_addition") ? obj.getInteger("earn_speed_addition") : 0;
		trainingGrowth = obj.containsKey("training_growth") ? obj.getInteger("training_growth") : 0;
		partnerExpAddition = obj.containsKey("partner_exp_addition") ? obj.getInteger("partner_exp_addition") : 0;
		rewardItem = obj.containsKey("reward_item") ? obj.getInteger("reward_item") : 0;
		pitNum = obj.containsKey("pit_num") ? obj.getInteger("pit_num") : 0;
	}

	public int getQuality() {
		return quality;
	}

	public int getEarnSpeedAddition() {
		return earnSpeedAddition;
	}

	public int getTrainingGrowth() {
		return trainingGrowth;
	}

	public int getPartnerExpAddition() {
		return partnerExpAddition;
	}

	public int getRewardItem() {
		return rewardItem;
	}

	public int getPitNum() {
		return pitNum;
	}

}
